<div class="content" style="width:900px;margin:0px auto">
	<?php
	$imod = n_mod('install');
	$imod->nav();
	?>


	<ol>
	<?php
	if(!empty($data['installed'])){
	foreach($data['installed'] as $key=>$val){
	?>
	<li style="border:1px solid #999;background-color:#efefef;padding:10px;margin:4px 0px;">
		<span style="float:right;">
		<?php
		if('remove'==$val['state']){
		?>
		<span style="color:red;">已卸载</span> |
		<a href="<?=n_url('install','pluginInit',array('pcode'=>$val['pevent']))?>">重新安装</a>		

		<?php
		}elseif('stop'==$val['state']){

		?>
		<span style="color:orange;">停止服务</span> |
		<a href="<?=n_url('install','pluginStart',array('pcode'=>$val['pevent']))?>">启动服务</a> |		
		<a href="<?=n_url('install','pluginRemove',array('pcode'=>$val['pevent']))?>">卸载</a>		

		<?php
		}else{

		?>
		<span style="color:green;">运行中</span> |
		<a href="<?=n_url('install','pluginStop',array('pcode'=>$val['pevent']))?>">停止服务</a> |		
		<a href="<?=n_url('install','pluginRemove',array('pcode'=>$val['pevent']))?>">卸载</a>		
		
		<?php
		}
		?>
		</span>
		插件名:<?=$val['name']?>--
		插件码:<?=$val['pevent']?>--
		版本:<?=$val['version']?>--
		时间:<?=date('Y-m-d',$val['ctime'])?><br />
		<?=$val['descript']?>
	</li>
	<?php
	}
	}
	?>	
	</ol>
</div>